package com.example.bootdemo.utils;

import java.io.Serializable;


public class LoginResult <T> implements Serializable {



    /**返回消息**/
    private String msg;


    /**返回数据**/
    private  Object data;


    private  Integer code;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
    public LoginResult(Integer code,Object data){
        this.code=code;
        this.data=data;
    }
    public static LoginResult success(Integer code,Object data){
        return new LoginResult( code, data) ;
    }
}
